import axios from "../index.js";
// 新增预警收集
export const saveAdd = (data) => {
  return axios.request({
    url: "/warning/warningInfo/save",
    method: "post",
    data: data
  });
};
// 删除
export const deleteById = (data) => {
  return axios.request({
    url: "/warning/warningInfo/deleteById",
    method: "post",
    data: data
  });
};
// 报送
export const warningInfoSubmit = (data) => {
  return axios.request({
    url: "/warning/warningInfo/submit",
    method: "post",
    data: data
  });
};
// 删除
export const deleteByIds = (data) => {
  return axios.request({
    url: "/warning/warningInfo/deleteByIds",
    method: "post",
    data: data
  });
};
// 分页查询
export const listPage = (data) => {
  return axios.request({
    url: "/warning/warningInfo/listPage",
    method: "post",
    data: data
  });
};
// 详情
export const getById = (data) => {
  return axios.request({
    url: "/warning/warningInfo/getById",
    method: "get",
    data: data
  });
};
// 研判
export const getJudgeInfo = (data) => {
  return axios.request({
    url: "/warning/warningInfo/getJudgeInfo",
    method: "get",
    data: data
  });
};
// 生成预警通知单
export const createNotice = (data) => {
  return axios.request({
    url: "/warning/warningInfo/createNotice",
    method: "post",
    data: data
  });
};
// 无需处理
export const updStateById = (data) => {
  return axios.request({
    url: "/warning/warningInfo/updStateById",
    method: "post",
    data: data
  });
};
// 修改
export const updById = (data) => {
  return axios.request({
    url: "/warning/warningInfo/updById",
    method: "post",
    data: data
  });
};
// 关联预警通知单
export const getIssueNoticeList = (data) => {
  return axios.request({
    url: "/warning/warningNotification/getIssueNoticeList",
    method: "post",
    data: data
  });
};
// 时间轴应急事件
export const getFlowList = (data) => {
  return axios.request({
    url: "/emergency/warningFlow/getFlowList",
    method: "get",
    data: data
  });
};
// 首页饼图数据
export const getStatistics = (data) => {
  return axios.request({
    url: "/warning/infoHomePage/getStatistics",
    method: "get",
    data: data
  });
};
// 预警管理首页预警信息
export const listPages = (data) => {
  return axios.request({
    url: "/warning/warningInfo/listPage2",
    method: "post",
    data: data
  });
};
// 首页树结构
export const getHomePageInfoTree = (data) => {
  return axios.request({
    // url: "/system/organization/getOrganizationChildren",
    url: "/system/organization/getHomePageInfo",
    method: "get",
    data: data
  });
};
// 影响范围
export const getCityTree = (data) => {
  return axios.request({
    url: "/system/city/getCityTree",
    method: "get",
    data: data
  });
};
// 地图数据
export const getAlreadyIssue = (data) => {
  return axios.request({
    url: "/warning/infoHomePage/getAlreadyIssue",
    method: "get",
    data: data
  });
};
// 分页查询影响范围
export const listPagey = (data) => {
  return axios.request({
    url: "/warning/warningInfo/listPage2",
    method: "post",
    data: data
  });
};

// 分页查询影响范围
export const doPageList = (data) => {
  return axios.request({
    url: "/warning/transmission/doPageList",
    method: "post",
    data: data
  });
};
